import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询分销提现订单列表
export function listOrderCash(data) {
  return request({
    url: '/order/cash/distribution/orderCashDistributionList',
    method: 'post',
    data: data
  })
}

// 查询分销提现订单详细
export function getOrderCash(OrderNo) {
  return request({
    url: '/order/cash/distribution/' + parseStrEmpty(OrderNo),
    method: 'get'
  })
}

// 新增分销提现订单
export function addOrderCash(data) {
  return request({
    url: '/order/cash/distribution',
    method: 'post',
    data: data
  })
}

// 修改分销提现订单
export function updateOrderCash(data) {
  return request({
    url: '/order/cash/distribution/orderCashDistributionEdit',
    method: 'post',
    data: data
  })
}